<?php
/**  think_aimsgs
 * Created by PhpStorm.
 * User: x
 * Date: 2018/9/20
 * Time: 14:08
 */

namespace app\common\model;

use think\Model;
use think\Session;
use think\Db;

class Aimsgs extends Model{
    // 判断msg数据库 返回应该发送的消息
    public function judge_msg($openid){
        // return Db::name('blog')->where(['id'=>$id])->select();
        $result = Db::name('aimsgs')->where('openid',$openid)->select();
        file_put_contents('./requestMsg.log','--8-- model判断msg数据--:'.$result."\n",FILE_APPEND);
        return $result;
    }

}

